package com.metamedia.test;

public class Min extends Operation {
	double[] numbers;

	public Min(double... numbers) {
		this.numbers = numbers;
	}

	@Override
	public Double compute() {
		double min = numbers[0];
		for (double number : numbers)
			if (number < min)
				min = number;
		return min;
	}

	@Override
	public String getName() {
		return "MIN";
	}

}